<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
</head>

<body>
	<div id="main">
		<div id="navigation">当前位置：<a href="<?php echo $this->projectUrl(array('action'=>'index-'.$this->suffix)) ;?>">渠道申请列表</a> &gt; <span id="focus">渠道软件包数量修改</span> </div>
  <div id="body">
			<div id="edit">
				<form id="editForm" name="editForm" method="post" action="">
					<table class="table">
						<tr class="dataLine">
						  <td>渠道的编号：</td>
						  <td><?php echo $this->row['memberCode'];?></td>
					  </tr>
						<tr class="dataLine">
						  <td>选择产品：</td>
						  <td>
                       
                          <?php echo $this->row['productCode'];?>
                         		
                          </td>
					  </tr>
						<tr class="dataLine">
						  <td>操作系统：</td>
						  <td>
                    
                          <?php echo $this->row['osName'];?>
                         </td>
					  </tr>
						<tr class="dataLine">
							<td height="19"><p >软件包数量：</p>						    </td>
							<td>
                             <?php if($this->row['status']==1 || $this->row['status']==2):?>
							<input name="applyNum" type="text" class="input" id="applyNum" value="<?php echo $this->row['applyNum'];?>" size="30" style="width:300px;">
                            <?php else:?>
                            <?php echo $this->row['applyNum'];?>
                            <?php endif;?></td>
						</tr>
						<tr class="dataLine">
							<td>备注：</td>
							<td>
                            <?php if($this->row['status']==1 || $this->row['status']==2):?>
                            <textarea name="applyNotes" cols="30" rows="5" class="input" id="applyNotes" style="width:300px;"><?php echo $this->row['applyNotes'];?></textarea>
                            <?php else:?>
                            <?php echo $this->row['applyNotes'];?>
                            <?php endif;?></td>
						</tr>
						<tr class="dataLine">
							<td>&nbsp;</td>
							<td>
                            <?php if($this->row['status']==1 || $this->row['status']==2):?>
                            <input type="submit" name="button" id="button" value="提交" class="button" />
                            <?php else:?>
						    <input type="button" name="button2"  id="button2" value="返回" onclick="location.href='<?php echo $this->projectUrl(array('action'=>'index')) ;?>';" />
                            <?php endif;?>
                            </td>
						</tr>
					</table>
			  </form>
			</div>
		</div>
</div>
<script>
$(function(){
	$("#productCode").change(function(){
		 $.ajax({ url: "<?php echo $this->projectUrl(array('action'=>'osnames'));?>",
              type:"post",           
             dataType:"json",
             data: "productCode="+$("#productCode option:selected").val(),
             success:function(data){ 
			 						var txt='<option value=""></option>';
                                   $.each(data,function(i){
										 txt += '<option value="'+data[i]+'">'+ data[i] + '</option>';
											  }); 
								   $("#osName").html(txt);
                              } 
         });
	
	
	
	})
	
})
</script>
</body>
</html>